package qf.controller.liu;

import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import qf.entity.User;
import qf.service.UserService;

@Controller("/user")
public class UserController {

    @Resource
    private UserService userService;

    //登录验证
    @PostMapping("login")
    public void login(@RequestParam("userName") String userName,
                      @RequestParam("passWord") String passWord,
                      HttpServletRequest request){

        User user = (User) userService.selectByUserName(userName);


    }
}

